home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 API Bible / Windows 95 API Bible 3 Disc Set.iso / Win32 API Bible Book 1 of 3 / CHAPTER8 / GETNDGI.RC < prev    next >
Text File  |  1996-01-28  |  2KB  |  44 lines

  1. #include "windows.h"
  2. #include "GetNDGI.h"
  3.  
  4. MYAPP                ICON    DISCARDABLE     "GENERIC.ICO"
  5.  
  6. MYAPP MENU DISCARDABLE 
  7. BEGIN
  8.     POPUP "&File"
  9.     BEGIN
  10.         MENUITEM "E&xit",                             IDM_EXIT
  11.     END
  12.     MENUITEM "&Test!",                                IDM_TEST
  13.     POPUP "&Help"
  14.     BEGIN
  15.         MENUITEM "&About My Application...",   IDM_ABOUT
  16.     END
  17. END
  18.  
  19. TESTDIALOG DIALOG DISCARDABLE  20, 20, 156, 68
  20. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  21. CAPTION "Test Dialog"
  22. FONT 8, "MS Sans Serif"
  23. BEGIN
  24.     CONTROL         "",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
  25.                                            WS_TABSTOP,12,8,66,10
  26.     CONTROL         "",IDC_CHECK2,"Button",BS_AUTOCHECKBOX,12,23,67,10
  27.     CONTROL         "",IDC_CHECK3,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
  28.                                            WS_TABSTOP,83,8,64,10
  29.     CONTROL         "",IDC_CHECK4,"Button",BS_AUTOCHECKBOX,83,23,66,10
  30.     PUSHBUTTON      "Done",IDCANCEL,52,47,50,14,WS_GROUP
  31. END
  32.  
  33. ABOUTBOX DIALOG 22, 17, 171, 43
  34. STYLE DS_MODALFRAME | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
  35. CAPTION "My Application"
  36. FONT 8, "MS Sans Serif"
  37. {
  38.    CONTROL "MyApp", -1, "STATIC", SS_ICON | WS_CHILD | WS_VISIBLE, 3, 2, 16, 16
  39.    CONTROL "Generic Application", -1, "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 28, 4, 100, 8
  40.    CONTROL "OK", IDOK, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 116, 26, 50, 14
  41. }
  42.  
  43.  
  44.